import { Entity, Column } from "typeorm";

@Entity("user")
export class User {

    @Column({ primary: true, name: "id", type: "char", length: 36 })
    Id: string;

    @Column({ name: "mobile", type: "varchar", length: 30, nullable: true })
    Mobile: string;

    @Column({ name: "nick_name", type: "varchar", length: 50, nullable: true })
    NickName: string;

    @Column({ name: "email", type: "varchar", length: 50, nullable: true })
    Email: string;

    @Column({ name: "password", type: "varchar", length: 30, nullable: true })
    Password: string;

    @Column({ name: "gender", type: "varchar", length: 10, nullable: true })
    Gender: 'male' | 'female';

    @Column({ name: "application_id", type: "char", length: 36, nullable: true })
    ApplicationId: string;

    @Column({ name: "create_date_time", type: "datetime" })
    CreateDateTime: Date;
}


